package com.tyg.entity;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhangjingnan
 * @since 2022-11-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class NoticeInfo implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 公告名称
     */
    @TableField("noticeName")
    private String noticeName;

    /**
     * 公告内容
     */
    @TableField("noticeContent")
    private String noticeContent;

    /**
     * 公告时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @TableField("creatTime")
    private Date creatTime;

    /**
     *   1撤回 2删除
     */
    private Integer status;

    /**
     * 用户id
     */
    @TableField("workId")
    private Integer workId;

    /**
     * 用户姓名
     */
    @TableField(exist = false)
    private String workName;


}
